]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix methods that take array arguments
authorGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 1 Jul 2011 13:24:16 +0000 (15:24 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 11 Jul 2011 18:13:35 +0000 (20:13 +0200)
Length parameter is no longer required in current GJS. Fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=654349

js/ui/notificationDaemon.js

index 37009d9f6fa41ed7ff76c05056436c904e14f9be..19288a7624afe8d5c9290683c9bc8104019fc87d 100644 (file)
@@ -122,7 +122,7 @@ NotificationDaemon.prototype = {
         } else if (hints['image-data']) {
             let [width, height, rowStride, hasAlpha,
                  bitsPerSample, nChannels, data] = hints['image-data'];
-            return textureCache.load_from_raw(data, data.length, hasAlpha,
+            return textureCache.load_from_raw(data, hasAlpha,
                                               width, height, rowStride, size);
         } else {
             let stockIcon;